<div class="widget_box"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" colspan="2" bgcolor="#CCCCCC">&nbsp;文章分类：</td>
  </tr>
<?php if($term_data) { foreach($term_data as $lines) {?>  
  <tr>
    <td width="20" height="30">&nbsp;</td>
    <td width="210"><a href="<?php echo $this->create_url('index/term'); ?>/?id=<?php echo $lines['term_id']; ?>" target="_self"><?php echo $lines['term_name']; ?></a></td>
  </tr>
<?php } } else { ?>
  <tr>
    <td width="20" height="30">&nbsp;</td>
    <td width="210"><a href="<?php echo $this->create_url('index/term'); ?>/?id=0" target="_self">未分类</a></td>
  </tr>
<?php } ?>  
</table>
</div>